import {request} from './request'
// 侧边栏导航等数据
export function getCategory() {
  return request({
    url:"/category"

  }).catch(err=>{
    console.log(err);
  });
}
export function getSubcategory(maitKey){
  return request({
    url:'/subcategory',
    params:{
      maitKey,
    }
  });
}